/*
 * Copyright © 2004-2014 chenYuan. All rights reserved.
 * @Website:wwww.jspx.net
 * @Mail:39793751@qq.com
 * @author: chenYuan , 陈原
 * @License: Jspx.net Framework Code is open source (LGPL)，Jspx.net Framework 使用LGPL 开源授权协议发布。
 * @jvm:jdk1.6+  x86/amd64
 *
 */
package com.jspx.txweb.table;

import com.jspx.sober.annotation.Column;
import com.jspx.sober.annotation.Id;
import com.jspx.sober.annotation.Table;
import com.jspx.sober.annotation.IDType;
import com.jspx.sober.table.OperateTable;
import com.jspx.txweb.util.TXWebUtil;
import com.jspx.utils.StringUtil;

/**
 * Created by IntelliJ IDEA.
 * User: chenYuan
 * Date: 2010-11-9
 * Time: 15:05:09
 * 系统自动生成的VO对象,不需要保存到数据库,但提供保存到数据库的注释,
 * 构架会更具配置文件自动生成
 */
@Table(name = "jspx_operate_vo", caption = "TXWeb动作", create = false)
public class OperateVO extends OperateTable {
    @Id(auto = true, type = IDType.serial)
    @Column(caption = "ID", notNull = true)
    private int id;

    @Column(caption = "名称", length = 100, notNull = true)
    private String caption = StringUtil.empty;

    @Column(caption = "方法名称", length = 100, notNull = true)
    private String methodCaption = StringUtil.empty;

    @Column(caption = "类名", length = 200, notNull = true)
    private String className = StringUtil.empty;

    @Column(caption = "方法", length = 100, notNull = true)
    private String classMethod = StringUtil.empty;

    @Column(caption = "转发结点", length = 200, notNull = true)
    private String actionName = StringUtil.empty;

    @Column(caption = "命名空间", length = 50, notNull = true)
    private String namespace = StringUtil.empty;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCaption() {
        return caption;
    }

    public void setCaption(String caption) {
        this.caption = caption;
    }

    public String getMethodCaption() {
        return methodCaption;
    }

    public void setMethodCaption(String methodCaption) {
        this.methodCaption = methodCaption;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getClassMethod() {
        return classMethod;
    }

    public void setClassMethod(String classMethod) {
        this.classMethod = classMethod;
    }

    public String getActionName() {
        return actionName;
    }

    public void setActionName(String actionName) {
        this.actionName = actionName;
    }

    public String getActionMethodId() {
        return  TXWebUtil.getOperateMethodId(namespace,actionName, classMethod);
    }

    public String getNamespace() {
        return namespace;
    }

    public void setNamespace(String namespace) {
        this.namespace = namespace;
    }


}